package com.mixpanel.example.hello.custom;

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * @Copyright © 2018 EGuan Inc. All rights reserved.
 * @Description: TODO
 * @Version: 1.0
 * @Create: 2018/4/20 17:49
 * @Author: sanbo
 */
@SuppressLint("AppCompatCustomView")
public class CuTextView extends TextView {
    /**
     * 构造方法
     *
     * @param context
     * @param attrs
     * @param defStyle
     */
    public CuTextView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    /**
     * 构造方法
     *
     * @param context
     * @param attrs
     */
    public CuTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    /**
     * 构造方法
     *
     * @param context
     */
    public CuTextView(Context context) {
        super(context);
    }


    //重新绘制样式
    @Override
    protected void onDraw(Canvas canvas) {
        // 不调用该方法无法获取 文字
        super.onDraw(canvas);
    }
}